<template>
  <el-tabs v-model="activeName">
    <el-tab-pane label="基础配置" name="first">
      <el-form v-model="form" label-width="120px" size="mini">
        <el-form-item label="节点名称">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
      </el-form>
    </el-tab-pane>
    <el-tab-pane label="监听器" name="second">
      <el-divider>流程监听器</el-divider>
      <ListenerTable type="execution" v-model="form.extensionElements"></ListenerTable>
    </el-tab-pane>
  </el-tabs>
</template>
<script>
    import mixins from './mixins'
    import ListenerTable from './common/ListenerTable'
    export default {
        mixins: [mixins],
        components:{
            ListenerTable
        },
        data() {
            return {
                activeName: 'first',
                form: {
                    name: '',
                    initiator: '',
                    extensionElements: [],
                },
            }
        },
        methods: {
        },
        created() {
            this.init('form',this.form)
            this.form.initiator='initiator'
        },
    }
</script>
<style lang="scss" scoped>
    .el-form {
        padding: 10px;

        .el-form-item__label {
            font-weight: 700;
        }
    }
</style>
